home *** CD-ROM | disk | FTP | other *** search
/ Merciful 2 / Merciful - Disc 2.iso / software / d / databasev3.1reg.lha / db3.1 / Examples / ARexxDemos / calc.db next >
Text File  |  1995-11-22  |  210b  |  9 lines

  1. /* calc expression in given gadget
  2.    Written by: Richard Ludwig */
  3. options results;GETFIELD
  4. if verify(result, '0123456789+-*/().','m') then do
  5.     interpret 'ret=' result
  6.     currentfield 'result'
  7.     PUTFIELD ret
  8. end
  9.